<?php
class Jnd_Mail_Staging extends Jnd_Mail
{

    /**
     *
     * @param unknown_type $email            
     * @param unknown_type $name            
     */
    public function addTo( $email, $name = '' )
    {
        $this->_addRecipientAndHeader('To', "zeearth@gmail.com", "JND");
        $this->_addRecipientAndHeader('To', "hervep@gmail.com", "HPO");
        $this->_to[] = "zeearth@gmail.com";
        $this->_to[] = "hervep@gmail.com";
        return $this;
    }

    /**
     * Définition du sujet du mail
     * @param unknown_type $params            
     */
    public function setSubject( $sujet )
    {
        $config = Jnd_App::getConfig("appli");
        $sujet = "[RECETTE]" . (isset($config['mailnom']) ? "[" . $config['mailnom'] . "]" : '') . $sujet;
        parent::setSubject($sujet);
    }
}
